import request from '@/utils/request'

// 查询法律援助问答列表
export function listLawquestion(query) {
  return request({
    url: '/wechat/lawquestion/list',
    method: 'get',
    params: query
  })
}

// 查询法律援助问答详细
export function getLawquestion(questionId) {
  return request({
    url: '/wechat/lawquestion/' + questionId,
    method: 'get'
  })
}

// 新增法律援助问答
export function addLawquestion(data) {
  return request({
    url: '/wechat/lawquestion',
    method: 'post',
    data: data
  })
}

// 修改法律援助问答
export function updateLawquestion(data) {
  return request({
    url: '/wechat/lawquestion',
    method: 'put',
    data: data
  })
}

// 删除法律援助问答
export function delLawquestion(questionId) {
  return request({
    url: '/wechat/lawquestion/' + questionId,
    method: 'delete'
  })
}

// 导出法律援助问答
export function exportLawquestion(query) {
  return request({
    url: '/wechat/lawquestion/export',
    method: 'get',
    params: query
  })
}